Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

288
Views
how to Find the element with the class “values”, and tell us what the element contains in the following page https://theplan.co.uk/support-applicant/

I seem to struggle with answering this question withing the following link : https://theplan.co.uk/support-applicant/

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Use querySelector for getting the tag, and innterText or textContent for getting the right content of the tag (with the current html both return the same).

console.log('innerText', document.querySelector('.values').innerText);

console.log('textContent', document.querySelector('.values').textContent);
<p>We're looking for someone to join our growing Customer Support team! <span class="values">Obsessing over our users</span> is one of the key Hotjar values, so you'll help us continue to deliver outstanding support.</p>

about 4 years ago · Juan Pablo Isaza Report

0

Two possibilities that come to mind immediately: querySelector and getElementsByClassName

Like @Totati, I would also prefer the querySelector.

document.querySelector('.values').innerText
// output: "Obsessing over our users"

elem = document.getElementsByClassName('values')[0].innerText
// output: "Obsessing over our users"
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!